package chances.declare.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

/**
 * 归并数据的实体类
 * @author guoyh
 *
 */
@Entity
@Table(name="CS_DECLARE_UNITCONTENT")
@Proxy(lazy = false)
public class UnitContent implements Serializable{
	private static final long serialVersionUID = -7186514404028131329L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) 
	@Column(name="id")
	private Long id;
	
	@Column(name="name")
	private String name;   //标题(归并的名称)
	
	@Column(name="adopt_org_id")
	private Long adoptOrgId; //所采纳的CP的ID org id
	
	@Column(name="adopt_cpcontent_id")
	private Long adoptCpContentId; //所采纳的CP内容的ID 
	
	@Column(name="content_num")
	private Integer contentNum;  //包含几条相同内容
	
	@Column(name="unit_time")
	private Date unitTime;  //归并的时间
	
	@Column(name="unit_operid")
	private String unitOperId;  //归并的操作员id
	
	@Column(name="adopt_time")
	private Date adoptTime;  //采纳的时间
	
	@Column(name="adopt_operid")
	private String adoptOperId;  //采纳的操作员id

	
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getAdoptOrgId() {
		return adoptOrgId;
	}

	public void setAdoptOrgId(Long adoptOrgId) {
		this.adoptOrgId = adoptOrgId;
	}

	public Long getAdoptCpContentId() {
		return adoptCpContentId;
	}

	public void setAdoptCpContentId(Long adoptCpContentId) {
		this.adoptCpContentId = adoptCpContentId;
	}

	public Integer getContentNum() {
		return contentNum;
	}

	public void setContentNum(Integer contentNum) {
		this.contentNum = contentNum;
	}

	public Date getUnitTime() {
		return unitTime;
	}

	public void setUnitTime(Date unitTime) {
		this.unitTime = unitTime;
	}

	public String getUnitOperId() {
		return unitOperId;
	}

	public void setUnitOperId(String unitOperId) {
		this.unitOperId = unitOperId;
	}

	public Date getAdoptTime() {
		return adoptTime;
	}

	public void setAdoptTime(Date adoptTime) {
		this.adoptTime = adoptTime;
	}

	public String getAdoptOperId() {
		return adoptOperId;
	}

	public void setAdoptOperId(String adoptOperId) {
		this.adoptOperId = adoptOperId;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	
}